/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package Controller;

import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 * thisListener is called when the user clicks on an email
 * it launches the Mail softawre ( Mail client for Mac os System)
 * @author Bakalian
 */
public class MailPageListener {
     
    public MailPageListener() {
  
       
           Runtime runtime = Runtime.getRuntime();
        try {
            runtime.exec(new String[] { "/Applications/Mail.app/Contents/MacOS/Mail"} );
        } catch (IOException ex) {
            Logger.getLogger(HomePageListener.class.getName()).log(Level.SEVERE, null, ex);
        }
}
}
